<script>
	// const PATH = 'http://120.78.78.201:7009';// '/api'
	// const PATH = 'http://192.168.2.122:7009'; // '/api'
	const PATH = 'http://192.168.2.95:7009'; // '/api'陈佳磊
	// const PATH = 'http://47.98.110.81:7009'; // 线上
	// const PATH = 'http://chenjl.51vip.biz/'; //映射地址
	const URLPATH = {
		UPLOADFILRE: PATH + '/file/uploadFile', //图片上传
		MECHANISM_QUERY: PATH + "/mechanism/selectByExampleAndRowBounds", //机构查询
		MECHANISM_NOPAGE_QUERY: PATH + "/mechanism/selectByExample", //机构查询
		MECHANISM_ADD: PATH + "/mechanism/", //机构增删改
		DEPT_QUERY: PATH + "/dept/selectByExampleAndRowBounds", //部门查询
		DEPT: PATH + "/dept/", //部门增删改
		MECHANISM_DEPT: PATH + "/mechanism/selectRetDept", //机构和部门树
		USER_QUERY: PATH + "/user/selectByMechnismAndDept", //机构和部门树下的用户
		USER_UPDATE_DEPT: PATH + "/user/updateMemberDept", //变更部门
		USER_REMOVE_DEPT: PATH + "/user/removeMemberDept", //删除成员
		USER_MANAGER_LIST_All: PATH + "/user/getManageUserAll", //获取负责人列表不分页，全部
		USER_MANAGER_LIST: PATH + "/user/getManageUser", //获取负责人列表
		getUsableManageUser: PATH + "/user/getUsableManageUser", //获取可以设置负责人列表
		setUserManager: PATH + "/user/setUserManager", //设置负责人
		delteUserManager: PATH + "/user/delteUserManager", //删除负责人
		getStationOrIntroducerUser: PATH + "/user/getStationOrIntroducerUser", //查询驻场或者负责人
		USER: PATH + "/user/", //用户操作
		RULE: PATH + "/deptRule/", //部门规则设定
		RULE_QUERY: PATH + "/deptRule/select", //部门规则设定

		RULE_CLASS: PATH + "/ruleClass/", //班次管理
		RULE_CLASS_QUERY: PATH + "/ruleClass/selectByExampleAndRowBounds", //班次查询
		RULE_CLASS_SELECT: PATH + "/ruleClass/select", //班次查询
		RULE_CLASS_INSERT: PATH + "/ruleClass/insertAll", //班次新增
		RULE_CLASS_UPDATE: PATH + "/ruleClass/updateAll", //班次修改
		RULE_CLASS_DETAIL_SELECTBYID: PATH + "/ruleClassDetail/selectById", //根据班次id 查询明细

		RULE_DEPT_RULE_CLASS: PATH + "/deptRule", //部门班次
		RULE_DEPT_RULE_DETAIL_CLASS: PATH + "/deptRuleDetail", //部门班次明细


		ROLE: PATH + "/role/", //角色管理
		ROLE_QUERY: PATH + "/role/selectByExampleAndRowBounds", //角色查询
		ROLE_SELECT_USER_BY_ROLEID: PATH + "/role/getUserByRoleId", //根据角色查询所拥有的用户
		ROLE_SET_POWER: PATH + "/role/setRoleUserPower", //设置角色
		SELECT: "/select", //查询单个
		INSERT: "/", //新增
		UPDATE: "/update", //修改


		MENU: PATH + "/menu/", //菜单
		MENU_QUERY_ALL: PATH + "/menu/selectMenuAll", //菜单查询
		MENU_QUERY: PATH + "/menu/selectMenu", //获取登录用户拥有的菜单


		HOSPITAL_QUERY_BY_ALIAS: PATH + "/hospital/queryByAlias",
		UPLOAD_IMG_URL: PATH + "/file/uploadFile",
		GET_IMG_URL: PATH + "/file/getUrl",
		LOGIN: PATH + "/user/login", //登录路径
		MANAGE_LOGIN: PATH + "/user/login", //后台登录url
		MANAGE_UPDATE_PASSWORD: PATH + "/manage/updatePassword", //修改密码

		DEPT_QUERY_BY_NAME: PATH + "/dept/getDeptByName", //根据名称查询
		DEPT_QUERY_BY_ID: PATH + "/dept/getDeptById", //根据id查询
		DEPT_INSERT: PATH + "/dept/insert", //修改部门信息
		DEPT_UPDATE: PATH + "/dept/update", //修改部门信息
		DEPT_DELETE: PATH + "/dept/", //删除部门

		USER_QUERYALLNOPAGE: PATH + "/user/selectByMechnismAndDeptNoByPage", //查询用户列表不分页
		USER_QUERYALL: PATH + "/user/queryAll", //查询用户列表
		USER_QUERY_BY_NAME: PATH + "/user/getUserByName", //根据名称查询
		USER_UPDATE: PATH + "/user/update", //修改用户信息
		USER_EXPERT_UPDATE: PATH + "/user/updateAndExpert", //修改用户信息
		EXPERT_USER_QUERY: PATH + "/expert/getExpert", //专家查询在用户里
		QUEST_QUERY: PATH + "/quest/query", //查询所有的问题列表
		QUEST_BYQURSTID: PATH + "/quest/queryByIdDetail", //查询所有的问题列表
		QUEST_UPDATE: PATH + "/quest/update", //修改问题
		COMMENT_UPDATE: PATH + "/comment/update", //修改问题
		QUEST_COUNT: PATH + "/quest/queryCount", //所有问题的数量
		QUEST_TOP: PATH + "/quest/queryTop", //最新的前10条
		QUEST_DOCTOR_COUNT: PATH + "/quest/questCountByDoctor", //查询对医生的提问
		COMMENT_COUNT: PATH + "/comment/questCountGourpByQuestId", //查看所有已经回答问题数量


		GETMANAGEUSER: PATH + "/user/stationOrIntroducerUser", //查询用户列表
		ADDUSER: PATH + "/user/", //新增用户
		GETMANAGEUSERNOPAGE: PATH + "/user/getManageUserNoPage", //		
		SELECTBYUSER: PATH + '/dept/selectByUser', //厂列表			
		SELECTDEPTDETAIL: PATH + '/dept/selectByKey', //查询厂详情

		STAFFLIST: PATH + '/user/selectUserByDeptByPage', //根据部门查询员工列表
		DEPTLIST: PATH + '/dept/selectByExample', //获取员工列表中使用的部门列表
		INDEPT: PATH + '/user/inDept', //新增员工
		OUTDEPT: PATH + '/user/outDept', //员工离职
		UPDATEJOBSTAFF: PATH + '/jobstaff/updateJobStaff', //员工管理修改介绍人
		SETDEPTUSER: PATH + '/dept/setDeptUser', //驻厂管理中设置管理厂
		GETBUSINESS: PATH + '/store/selectByPage', //获取商家列表
		ADDSTORE: PATH + '/store/applyStore', //新增商家
		EXAMINE: PATH + '/store/handle', //审批
		DELETEEXAMINE: PATH + '/store/', //删除商家
		GETSTOREDETAIL: PATH + '/store/selectDetail', //获取商家详情

		GETEMPLOY: PATH + '/employ/selectByPage', //获取招聘信息
		ADDEMPLOY: PATH + '/employ/', //新增招聘信息
		GETREGION: PATH + '/region/selectRegion', //获取地区列表
		GETSALARYRANGE: PATH + '/salaryRange/selectSalaryRange', //获取薪酬范围
		GETPOSITION: PATH + '/position/selectPosition', //获取职位
		GETBUSINESSEMPLOY: PATH + '/employ/selectByPage', //查询商家招聘信息
		GETEMPLOYDETAIL: PATH + '/employ/selectDetail', //查询招聘详情
		GETDELIVER: PATH + '/employ/selectDeliver', //查询简历
		GETMANAGER: PATH + '/store/selectManager', //获取商家管理员
		ADDMANAGER: PATH + '/store/addManager',//新增管理员
		DELETEMANAGER:PATH+'/store/deleteManager',//删除管理员
	}

	const HOSPITAL_CAT = {
		ycsyy: "盐城市第一人民医院",
		smh: "苏州市立医院",
		wdxcx: "智医互联",
	}
	//sessionStorage 的键值
	const SESSION_CONFIG = {
		HOSPITAL: "hospital",
		REMOVE_THIS: "remove_this",
		DEPT_USER_THIS: "dept_user_this", //选择用户时存放的部门id
		DEPT_NAME_USER_THIS: "dept_name_user_this", //选择用户时存放的部门名称
		DEPT_RULE_THIS: "dept_rule_this", //部门规则选择时传入部门id
		QUEST_COMMENT_THIS: "quest_comment_this", //选择用户时存放的部门名称
		MECHANISM_ID: "mechanism_id", //存放机构id
	}

	export default {
		PATH,
		URLPATH,
		HOSPITAL_CAT, //医院标记
		SESSION_CONFIG,
	}
</script>
